package com.bracket

import android.content.ComponentName
import android.graphics.drawable.Drawable

data class AppInfo(var name: String, var icon: Drawable, var packageName: ComponentName)


//class AppScanner {
//
//    companion object Scanner {
//        fun scanInstalledApps(context: Context): List<AppInfo> {
//            val packageManager = context.packageManager
//            val apps = packageManager.getInstalledApplications(0)
//            return apps.map { it -> AppInfo(it.loadLabel(packageManager).toString(), it.loadIcon(packageManager), it.packageName) }
//        }
//    }
//}